home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3544 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  776 b 

  1. Path: mini01.vejlees.dk!inf94a02
  2. From: inf94a02@mini01.vejlees.dk (Jonas Andersen)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP! #include <math.c> question
  5. Date: 29 Jan 1996 21:13:34 GMT
  6. Organization: News Server at UNI-C, Danish Computing Centre for Research and Education.
  7. Message-ID: <4ejd9u$mru@news.uni-c.dk>
  8. References: <Pine.SV4.3.91.960120135347.12016A-100000@larry>
  9. NNTP-Posting-Host: mini01.vejlees.dk
  10. X-Newsreader: TIN [version 1.2 PL1]
  11.  
  12. John Marsh (libjrm@emory.edu) wrote:
  13. : Hi folks-
  14. : When I try to compile it, I get an "Undefined symbol (sqrt) - Symbol 
  15. : referencing error" message. Shouldn't <math.h> recognize sqrt? I must be 
  16.  
  17. Did you remember to link with not math-lib? I don't think so. You might 
  18. wanna try e.g. : gcc foo.c -lm
  19.  
  20. m for the math lib.
  21.  
  22. Jones
  23.